package com.qianqian.service.model;

import java.util.ArrayList;
import java.util.List;

public class CapitalAccountExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CapitalAccountExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andYueIsNull() {
            addCriterion("yue is null");
            return (Criteria) this;
        }

        public Criteria andYueIsNotNull() {
            addCriterion("yue is not null");
            return (Criteria) this;
        }

        public Criteria andYueEqualTo(Double value) {
            addCriterion("yue =", value, "yue");
            return (Criteria) this;
        }

        public Criteria andYueNotEqualTo(Double value) {
            addCriterion("yue <>", value, "yue");
            return (Criteria) this;
        }

        public Criteria andYueGreaterThan(Double value) {
            addCriterion("yue >", value, "yue");
            return (Criteria) this;
        }

        public Criteria andYueGreaterThanOrEqualTo(Double value) {
            addCriterion("yue >=", value, "yue");
            return (Criteria) this;
        }

        public Criteria andYueLessThan(Double value) {
            addCriterion("yue <", value, "yue");
            return (Criteria) this;
        }

        public Criteria andYueLessThanOrEqualTo(Double value) {
            addCriterion("yue <=", value, "yue");
            return (Criteria) this;
        }

        public Criteria andYueIn(List<Double> values) {
            addCriterion("yue in", values, "yue");
            return (Criteria) this;
        }

        public Criteria andYueNotIn(List<Double> values) {
            addCriterion("yue not in", values, "yue");
            return (Criteria) this;
        }

        public Criteria andYueBetween(Double value1, Double value2) {
            addCriterion("yue between", value1, value2, "yue");
            return (Criteria) this;
        }

        public Criteria andYueNotBetween(Double value1, Double value2) {
            addCriterion("yue not between", value1, value2, "yue");
            return (Criteria) this;
        }

        public Criteria andEduIsNull() {
            addCriterion("edu is null");
            return (Criteria) this;
        }

        public Criteria andEduIsNotNull() {
            addCriterion("edu is not null");
            return (Criteria) this;
        }

        public Criteria andEduEqualTo(Double value) {
            addCriterion("edu =", value, "edu");
            return (Criteria) this;
        }

        public Criteria andEduNotEqualTo(Double value) {
            addCriterion("edu <>", value, "edu");
            return (Criteria) this;
        }

        public Criteria andEduGreaterThan(Double value) {
            addCriterion("edu >", value, "edu");
            return (Criteria) this;
        }

        public Criteria andEduGreaterThanOrEqualTo(Double value) {
            addCriterion("edu >=", value, "edu");
            return (Criteria) this;
        }

        public Criteria andEduLessThan(Double value) {
            addCriterion("edu <", value, "edu");
            return (Criteria) this;
        }

        public Criteria andEduLessThanOrEqualTo(Double value) {
            addCriterion("edu <=", value, "edu");
            return (Criteria) this;
        }

        public Criteria andEduIn(List<Double> values) {
            addCriterion("edu in", values, "edu");
            return (Criteria) this;
        }

        public Criteria andEduNotIn(List<Double> values) {
            addCriterion("edu not in", values, "edu");
            return (Criteria) this;
        }

        public Criteria andEduBetween(Double value1, Double value2) {
            addCriterion("edu between", value1, value2, "edu");
            return (Criteria) this;
        }

        public Criteria andEduNotBetween(Double value1, Double value2) {
            addCriterion("edu not between", value1, value2, "edu");
            return (Criteria) this;
        }

        public Criteria andYingliYueIsNull() {
            addCriterion("yingli_yue is null");
            return (Criteria) this;
        }

        public Criteria andYingliYueIsNotNull() {
            addCriterion("yingli_yue is not null");
            return (Criteria) this;
        }

        public Criteria andYingliYueEqualTo(Double value) {
            addCriterion("yingli_yue =", value, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueNotEqualTo(Double value) {
            addCriterion("yingli_yue <>", value, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueGreaterThan(Double value) {
            addCriterion("yingli_yue >", value, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueGreaterThanOrEqualTo(Double value) {
            addCriterion("yingli_yue >=", value, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueLessThan(Double value) {
            addCriterion("yingli_yue <", value, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueLessThanOrEqualTo(Double value) {
            addCriterion("yingli_yue <=", value, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueIn(List<Double> values) {
            addCriterion("yingli_yue in", values, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueNotIn(List<Double> values) {
            addCriterion("yingli_yue not in", values, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueBetween(Double value1, Double value2) {
            addCriterion("yingli_yue between", value1, value2, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andYingliYueNotBetween(Double value1, Double value2) {
            addCriterion("yingli_yue not between", value1, value2, "yingliYue");
            return (Criteria) this;
        }

        public Criteria andIsActivityIsNull() {
            addCriterion("is_activity is null");
            return (Criteria) this;
        }

        public Criteria andIsActivityIsNotNull() {
            addCriterion("is_activity is not null");
            return (Criteria) this;
        }

        public Criteria andIsActivityEqualTo(Integer value) {
            addCriterion("is_activity =", value, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityNotEqualTo(Integer value) {
            addCriterion("is_activity <>", value, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityGreaterThan(Integer value) {
            addCriterion("is_activity >", value, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_activity >=", value, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityLessThan(Integer value) {
            addCriterion("is_activity <", value, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityLessThanOrEqualTo(Integer value) {
            addCriterion("is_activity <=", value, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityIn(List<Integer> values) {
            addCriterion("is_activity in", values, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityNotIn(List<Integer> values) {
            addCriterion("is_activity not in", values, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityBetween(Integer value1, Integer value2) {
            addCriterion("is_activity between", value1, value2, "isActivity");
            return (Criteria) this;
        }

        public Criteria andIsActivityNotBetween(Integer value1, Integer value2) {
            addCriterion("is_activity not between", value1, value2, "isActivity");
            return (Criteria) this;
        }

        public Criteria andDanCiEduIsNull() {
            addCriterion("dan_ci_edu is null");
            return (Criteria) this;
        }

        public Criteria andDanCiEduIsNotNull() {
            addCriterion("dan_ci_edu is not null");
            return (Criteria) this;
        }

        public Criteria andDanCiEduEqualTo(Double value) {
            addCriterion("dan_ci_edu =", value, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduNotEqualTo(Double value) {
            addCriterion("dan_ci_edu <>", value, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduGreaterThan(Double value) {
            addCriterion("dan_ci_edu >", value, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduGreaterThanOrEqualTo(Double value) {
            addCriterion("dan_ci_edu >=", value, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduLessThan(Double value) {
            addCriterion("dan_ci_edu <", value, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduLessThanOrEqualTo(Double value) {
            addCriterion("dan_ci_edu <=", value, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduIn(List<Double> values) {
            addCriterion("dan_ci_edu in", values, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduNotIn(List<Double> values) {
            addCriterion("dan_ci_edu not in", values, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduBetween(Double value1, Double value2) {
            addCriterion("dan_ci_edu between", value1, value2, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andDanCiEduNotBetween(Double value1, Double value2) {
            addCriterion("dan_ci_edu not between", value1, value2, "danCiEdu");
            return (Criteria) this;
        }

        public Criteria andJifenYueIsNull() {
            addCriterion("jifen_yue is null");
            return (Criteria) this;
        }

        public Criteria andJifenYueIsNotNull() {
            addCriterion("jifen_yue is not null");
            return (Criteria) this;
        }

        public Criteria andJifenYueEqualTo(Double value) {
            addCriterion("jifen_yue =", value, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueNotEqualTo(Double value) {
            addCriterion("jifen_yue <>", value, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueGreaterThan(Double value) {
            addCriterion("jifen_yue >", value, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueGreaterThanOrEqualTo(Double value) {
            addCriterion("jifen_yue >=", value, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueLessThan(Double value) {
            addCriterion("jifen_yue <", value, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueLessThanOrEqualTo(Double value) {
            addCriterion("jifen_yue <=", value, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueIn(List<Double> values) {
            addCriterion("jifen_yue in", values, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueNotIn(List<Double> values) {
            addCriterion("jifen_yue not in", values, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueBetween(Double value1, Double value2) {
            addCriterion("jifen_yue between", value1, value2, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andJifenYueNotBetween(Double value1, Double value2) {
            addCriterion("jifen_yue not between", value1, value2, "jifenYue");
            return (Criteria) this;
        }

        public Criteria andZhifubaoIsNull() {
            addCriterion("zhifubao is null");
            return (Criteria) this;
        }

        public Criteria andZhifubaoIsNotNull() {
            addCriterion("zhifubao is not null");
            return (Criteria) this;
        }

        public Criteria andZhifubaoEqualTo(String value) {
            addCriterion("zhifubao =", value, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoNotEqualTo(String value) {
            addCriterion("zhifubao <>", value, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoGreaterThan(String value) {
            addCriterion("zhifubao >", value, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoGreaterThanOrEqualTo(String value) {
            addCriterion("zhifubao >=", value, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoLessThan(String value) {
            addCriterion("zhifubao <", value, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoLessThanOrEqualTo(String value) {
            addCriterion("zhifubao <=", value, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoLike(String value) {
            addCriterion("zhifubao like", value, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoNotLike(String value) {
            addCriterion("zhifubao not like", value, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoIn(List<String> values) {
            addCriterion("zhifubao in", values, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoNotIn(List<String> values) {
            addCriterion("zhifubao not in", values, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoBetween(String value1, String value2) {
            addCriterion("zhifubao between", value1, value2, "zhifubao");
            return (Criteria) this;
        }

        public Criteria andZhifubaoNotBetween(String value1, String value2) {
            addCriterion("zhifubao not between", value1, value2, "zhifubao");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}